package worktime.yft.demo.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import worktime.yft.demo.Entity.Project;

import java.util.List;

@Mapper
public interface ProjectMapper {
    public int insert(Project project);
    public void update(Project project);
    public Project findProject(@Param("ProjectId")int id);
    public List<String> findAllProjectName();
    public List<Integer> findAllProjectId();
    public void delete(@Param("ProjectId")int id);
    public Project findProjectByName(@Param("ProjectName")String name);
    public List<Project> findProjects();
}
